<?php

		$arr_remain = array();
		$con = mysql_connect("localhost","root","mymachbiAm9");
		if (!$con)
		  {
		  die('Could not connect: ' . mysql_error());
		  }
		
		mysql_select_db("ikano", $con);

		$data = isset($_REQUEST['textString'])?$_REQUEST['textString']:'';
			
		$str_sql = "INSERT INTO data (text)
						VALUES ('".$data."')";
		
						$result = mysql_query($str_sql);
						
		if (!$result) {
		    die('Invalid query: ' . mysql_error());
		}
			
		mysql_close($con);
?>
